var mongoose = require('mongoose');  
mongoose.connect('mongodb://localhost:27017/demo');
exports.mongoose = mongoose;